package day09API.object;

public class demo01 {
    private String name = "dbx";
    private int age = 20;

    @Override
    public String toString() {
        return "demo01{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public demo01(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public static void main(String[] args) {
        demo01 d = new demo01("df",23);
        System.out.println(d.toString());

    }

}
